@include('header')
@if(!$data)
	@include('empty_data')
@else
<link rel="stylesheet" href="{{asset('css/messagesList.css')}}">
<div class="content">
	<div class="messageList">
		@foreach($data as $k=>$v)
		<div class="message-wrap">
			<div class="messageTime">
				<i class="icon-time"></i>
				<span class="time">{{$v->created_at}}</span>
			</div>
			<a href="{{url('webview/messages_detail?id='.$v->id)}}">
			<div class="message-part">
				<h3 class="message-title"><span>{{$v->title}}</span>@if($v->viewed <= 0)<i class="msg-redDot"></i>@endif</h3>
				<h3 style="color:#000">[点击查看]</h3>

			</div>
			</a>
		</div>
		@endforeach
	</div>
</div>
@endif